app_root_path = '/jakarta_payroll/';

$(document).ready(function () {
   
  $.each($('input'), function (k,v) {
    $(this).attr('autocomplete','off');
  });

  if ($(".date_text").length >= 1) {
    $(".date_text").datepicker({
      minDate:"-50Y",
      changeYear:true,
      changeMonth:true,
      maxDate:"+1M +10D",
      yearRange:"c-100:c+10",
      dateFormat:"yy-mm-dd"
    });
  }

  if ($(".message").length >= 1) {
    setTimeout('$(".message").fadeOut("slow")',3000);
  }
}
);
